package online.foxnull2.foxmall.product.feign;

import online.foxnull2.common.to.SkuFullReductionTo;
import online.foxnull2.common.to.SkuLadderTo;
import online.foxnull2.common.to.SkuMemberPriceTo;
import online.foxnull2.common.to.SpuBoundsTo;
import online.foxnull2.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("foxmall-coupon")
public interface CouponFeignService {
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);

    @PostMapping("/coupon/skufullreduction/save")
    R saveSkuFullReductin(@RequestBody SkuFullReductionTo skuFullReductionTo);

    @PostMapping("/coupon/skuladder/save")
    R saveSkuLadder(@RequestBody SkuLadderTo skuLadderTo);

    @PostMapping("/coupon/memberprice/skumemberprices/save")
    R saveSkuMemberPrices(@RequestBody List<SkuMemberPriceTo> skuMemberPriceToList);
}
